Beispiel #1
0
        public void EqualsNullTest()
        {
            var localizedStringComparer = new LocalizedStringComparer();
            var result = localizedStringComparer.Equals(null, null);

            Assert.IsTrue(result);
        }
Beispiel #2
0
        public void EqualsTest()
        {
            var lsA = new LocalizedString("name", "value");
            var lsB = new LocalizedString("name", "value");

            var localizedStringComparer = new LocalizedStringComparer();
            var result = localizedStringComparer.Equals(lsA, lsB);

            Assert.IsTrue(result);
        }
Beispiel #3
0
        public void NotEqualsNameAndValueTest()
        {
            var lsA = new LocalizedString("name", "value");
            var lsB = new LocalizedString("jmeno", "hodnota");


            var localizedStringComparer = new LocalizedStringComparer();
            var result = localizedStringComparer.Equals(lsA, lsB);

            Assert.IsFalse(result);
        }