Skip to content

Commit

Permalink
Use '0' instead of 'default'
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrzajac committed Dec 15, 2024
1 parent 34048cb commit 51c945f
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public void GivenTestMethodHasSomeValueParameters_WhenTestRun_ThenParametersAreG
// Arrange
// Act
// Assert
value.Should().NotBe(default);
value.Should().NotBe(0);
}

[AutoMockData]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public void GivenTestMethodHasSomeInlineParameters_WhenTestRun_ThenParametersAre
// Act
// Assert
firstValueInstance.Should().Be(100);
secondValueInstance.Should().NotBe(default);
secondValueInstance.Should().NotBe(0);

objectInstance.Should().NotBeNull();
objectInstance.StringProperty.Should().NotBeNullOrEmpty();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public void GivenTestMethodHasSomeMemberGeneratedParameters_WhenTestRun_ThenPara
first.Should().BeOneOf((int)testData[0][0], (int)testData[1][0], (int)testData[2][0]);
second.Should().BeOneOf((int)testData[0][1], (int)testData[1][1], (int)testData[2][1]);
third.Should().BeOneOf((int)testData[0][2], (int)testData[1][2], (int)testData[2][2]);
fourth.Should().NotBe(default);
fourth.Should().NotBe(0);

objectInstance.Should().NotBeNull();
objectInstance.StringProperty.Should().NotBeNullOrEmpty();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public void GivenTestMethodHasSomeValueParameters_WhenTestRun_ThenParametersAreG
// Arrange
// Act
// Assert
value.Should().NotBe(default);
value.Should().NotBe(0);
}

[AutoMockData]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public void GivenTestMethodHasSomeInlineParameters_WhenTestRun_ThenParametersAre
// Act
// Assert
firstValueInstance.Should().Be(100);
secondValueInstance.Should().NotBe(default);
secondValueInstance.Should().NotBe(0);

objectInstance.Should().NotBeNull();
objectInstance.StringProperty.Should().NotBeNullOrEmpty();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public void GivenTestMethodHasSomeMemberGeneratedParameters_WhenTestRun_ThenPara
first.Should().BeOneOf((int)testData[0][0], (int)testData[1][0], (int)testData[2][0]);
second.Should().BeOneOf((int)testData[0][1], (int)testData[1][1], (int)testData[2][1]);
third.Should().BeOneOf((int)testData[0][2], (int)testData[1][2], (int)testData[2][2]);
fourth.Should().NotBe(default);
fourth.Should().NotBe(0);

objectInstance.Should().NotBeNull();
objectInstance.StringProperty.Should().NotBeNullOrEmpty();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public void GivenTestMethodHasSomeValueParameters_WhenTestRun_ThenParametersAreG
// Arrange
// Act
// Assert
value.Should().NotBe(default);
value.Should().NotBe(0);
}

[AutoMockData]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public void GivenTestMethodHasSomeInlineParameters_WhenTestRun_ThenParametersAre
// Act
// Assert
firstValueInstance.Should().Be(100);
secondValueInstance.Should().NotBe(default);
secondValueInstance.Should().NotBe(0);

objectInstance.Should().NotBeNull();
objectInstance.StringProperty.Should().NotBeNullOrEmpty();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public void GivenTestMethodHasSomeMemberGeneratedParameters_WhenTestRun_ThenPara
first.Should().BeOneOf((int)testData[0][0], (int)testData[1][0], (int)testData[2][0]);
second.Should().BeOneOf((int)testData[0][1], (int)testData[1][1], (int)testData[2][1]);
third.Should().BeOneOf((int)testData[0][2], (int)testData[1][2], (int)testData[2][2]);
fourth.Should().NotBe(default);
fourth.Should().NotBe(0);

objectInstance.Should().NotBeNull();
objectInstance.StringProperty.Should().NotBeNullOrEmpty();
Expand Down

0 comments on commit 51c945f

Please sign in to comment.