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(); |
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
. . . . | |
. . 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
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
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
public GildedRose checkItem(String item, Integer sellin, Integer quality) { | |
Item[] items = new Item[] { new Item(item, sellin, quality) }; | |
GildedRose app = new GildedRose(items); | |
app.updateQuality(); | |
return app; | |
} |
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
package com.gildedrose; | |
import static org.junit.Assert.assertEquals; | |
import org.junit.Test; | |
public class GildedRoseTest { | |
@Test | |
public void AfterSellByDateDegradeDouble() { |
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
package com.gildedrose; | |
import org.approvaltests.combinations.CombinationApprovals; | |
import org.approvaltests.legacycode.Range; | |
import junit.framework.TestCase; | |
public class GildedRoseApprovalTest extends TestCase { | |
public void testSomething() throws Exception { |
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
args: (0,) => 'zero' | |
args: (1,) => ' one' | |
args: (2,) => ' two' | |
args: (3,) => ' three' | |
args: (4,) => ' four' | |
args: (5,) => ' five' | |
args: (6,) => ' six' | |
args: (7,) => ' seven' | |
args: (8,) => ' eight' | |
args: (9,) => ' nine' |
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
Feature: User management | |
As an administrator, | |
I can define users selecting roles with every role able to view observations, | |
So that users have access to intended information. | |
Scenario: Admin can create admins | |
Given Default admin logs in to user management | |
Then Admin can create admin users | |
Then New admin user exists on the users list | |
And New admin user can login |
OlderNewer