-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
47 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
namespace ConsumerTests.Members; | ||
|
||
public class InstanceFieldTests | ||
{ | ||
[Fact] | ||
public void Type_with_two_members() | ||
{ | ||
MyIntWithMembersInvalidAndUnspecified.Invalid.Value.Should().Be(-1); | ||
MyIntWithMembersInvalidAndUnspecified.Unspecified.Value.Should().Be(-2); | ||
} | ||
|
||
[Fact] | ||
public void Type_with_underlying_decimal_with_two_members() | ||
{ | ||
MyDecimalWithMembersInvalidAndUnspecified.Invalid.Value.Should().Be(-1.23m); | ||
MyDecimalWithMembersInvalidAndUnspecified.Unspecified.Value.Should().Be(-2.34m); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
.../ConsumerTests/Instances/InstanceTests.cs → tests/ConsumerTests/Members/InstanceTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
tests/ConsumerTests/Instances/Types.cs → tests/ConsumerTests/Members/Types.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
namespace ConsumerTests.Instances; | ||
namespace ConsumerTests.Members; | ||
|
||
[Intellenum(typeof(int))] | ||
[Member(name: "Invalid", value: -1)] | ||
[Member(name: "Unspecified", value: -2)] | ||
public partial class MyIntWithTwoInstanceOfInvalidAndUnspecified | ||
public partial class MyIntWithMembersInvalidAndUnspecified | ||
{ | ||
} | ||
|
||
[Intellenum(typeof(decimal))] | ||
[Member(name: "Invalid", value: "-1.23")] | ||
[Member(name: "Unspecified", value: "-2.34")] | ||
public partial class MyDecimalWithTwoInstanceOfInvalidAndUnspecified | ||
public partial class MyDecimalWithMembersInvalidAndUnspecified | ||
{ | ||
} | ||
|
||
[Intellenum(typeof(int))] | ||
[Member(name: "Invalid", value: -1)] | ||
[Member(name: "Unspecified", value: -2)] | ||
public partial class MyStructVoIntWithTwoInstanceOfInvalidAndUnspecified | ||
public partial class MyStructVoIntWithMembersInvalidAndUnspecified | ||
{ | ||
} | ||
|
||
[Intellenum(typeof(int))] | ||
[Member(name: "Invalid", value: -1)] | ||
[Member(name: "Unspecified", value: -2)] | ||
public partial class MyRecordClassVoIntWithTwoInstanceOfInvalidAndUnspecified | ||
public partial class MyRecordClassVoIntWithMembersInvalidAndUnspecified | ||
{ | ||
} |