Skip to content

Commit

Permalink
fix: failing unit tests due to missing enum members attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
baywet committed Aug 1, 2024
1 parent a7d1b16 commit 0bd2b3d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@
// ------------------------------------------------------------------------------


using System.Runtime.Serialization;

namespace Microsoft.Graph.DotnetCore.Core.Test.TestModels
{
/// <summary>
/// Enum for testing enum serialization and deserialization.
/// </summary>
public enum EnumType
{
[EnumMember(Value = "value")]
Value,
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// ------------------------------------------------------------------------------


using System.Runtime.Serialization;

namespace Microsoft.Graph.DotnetCore.Core.Test.TestModels
{
/// <summary>
Expand All @@ -11,8 +13,9 @@ namespace Microsoft.Graph.DotnetCore.Core.Test.TestModels
[System.Flags]
public enum EnumTypeWithFlags
{
[EnumMember(Value = "firstValue")]
FirstValue = 1,

[EnumMember(Value = "secondValue")]
SecondValue = 2
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------

using System.Runtime.Serialization;

namespace Microsoft.Graph.DotnetCore.Core.Test.TestModels.ServiceModels
{
/// <summary>
Expand All @@ -13,11 +15,13 @@ public enum TestBodyType
/// <summary>
/// Text
/// </summary>
[EnumMember(Value = "text")]
Text = 0,

/// <summary>
/// Html
/// </summary>
[EnumMember(Value = "html")]
Html = 1,

}
Expand Down

0 comments on commit 0bd2b3d

Please sign in to comment.