Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
        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));
        }