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
public void testSomething() throws Exception { | |
String[] items = { "Any" }; | |
Integer[] sellins = { 0 }; | |
Integer[] qualities = { 0 }; | |
CombinationApprovals.verifyAllCombinations(this::checkItem, items, sellins, qualities); | |
} |
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
1) | |
* * | |
* | |
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
. . . . | |
. . B B | |
. . . . | |
. . . . | |
. . . . |
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
[TestClass] | |
public class ClaimEqualityComparerTest : BaseTest | |
{ | |
[TestMethod] | |
public void ClaimsAreEqual() | |
{ | |
var identical = new Claim { Type = "Type", Value = "Value" }; | |
var sameType = new Claim { Type = "TYPE", Value = "Value" }; | |
AssertEquality(true, identical, sameType); | |
} |
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
[TestClass] | |
public class ClaimEqualityComparerTest : BaseTest | |
{ | |
[TestMethod] | |
public void Equals_ClaimsAreEqual_ReturnsTrue() | |
{ | |
var claim1 = new Claim { Type = "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name", Value = "Foo" }; | |
var claim2 = new Claim { Type = "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name", Value = "Foo" }; | |
var comparator = new ClaimEqualityComparer(); | |
comparator.Equals(claim1, claim2).Should().BeTrue(); |
NewerOlder