public void Equals_NotMatchingKeyButMatchingNamespace_False() { const string expectedNamespace = "TestNameSpace"; const string expectedKey = "TestKey"; var localisationKey = new LocalisationKey(expectedNamespace, expectedKey); var otherLocalisationKey = new LocalisationKey(expectedNamespace, "CRAAAAP"); Assert.IsFalse(otherLocalisationKey.Equals(localisationKey)); }
public void Equals_MatchingKeyAndNamespace_True() { const string expectedNamespace = "TestNameSpace"; const string expectedKey = "TestKey"; var localisationKey = new LocalisationKey(expectedNamespace, expectedKey); var otherLocalisationKey = new LocalisationKey(expectedNamespace, expectedKey); Assert.IsTrue(otherLocalisationKey.Equals(localisationKey)); }