Skip to content

Commit

Permalink
Update ConstantExpectedTests.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Jun 18, 2024
1 parent 41e9f60 commit e5d4eb0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Tests/ConstantExpectedTests.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[TestFixture]
public class ConstantExpectedTests
{
public static void Method([ConstantExpected] int b) { }
public static void MethodWithMinMax([ConstantExpected(Min = -5, Max = 10)] int b) { }
public void Method([ConstantExpected] int b) { }
public void MethodWithMinMax([ConstantExpected(Min = -5, Max = 10)] int b) { }

// Invalid declaration
// public static void InvalidRange([ConstantExpected(Min = 5, Max = -5)] int b) { }
// public void InvalidRange([ConstantExpected(Min = 5, Max = -5)] int b) { }

public static void Test(int variableNum)
public void Test(int variableNum)
{
// Valid calls
const int constNum = 10;
Expand Down

0 comments on commit e5d4eb0

Please sign in to comment.