public void When_comparing_values_are_case_sensitive() { var apiKey1 = new DefaultClientApiKey("fooId", "fooSecret"); var apiKey2 = new DefaultClientApiKey("fooID", "fooSecret"); var apiKey3 = new DefaultClientApiKey("fooId", "FooSecret"); apiKey1.ShouldNotBe(apiKey2); apiKey1.ShouldNotBe(apiKey3); (apiKey1 == apiKey2).ShouldBeFalse(); (apiKey2 == apiKey3).ShouldBeFalse(); }
public void When_comparing_different_values() { var apiKey1 = new DefaultClientApiKey("fooId", "fooSecret"); var apiKey2 = new DefaultClientApiKey("barId", "barSecret"); apiKey1.ShouldNotBe(apiKey2); (apiKey1 != apiKey2).ShouldBeTrue(); }