Beispiel #1
0
        public void WarewolfAtomComparer_GetHashCode()
        {
            var comparer = new WarewolfAtomComparer();
            var hashCode = comparer.GetHashCode(DataStorage.WarewolfAtom.NewDataString("a"));

            Assert.AreNotEqual(0, hashCode);
        }
Beispiel #2
0
        public void WarewolfAtomComparer_Equals_YisNull_ReturnFalse()
        {
            var a        = DataStorage.WarewolfAtom.NewDataString("a");
            var comparer = new WarewolfAtomComparer();

            Assert.IsFalse(comparer.Equals(null, a));
        }
Beispiel #3
0
        public void WarewolfAtomComparer_Equals_ReturnTrue()
        {
            var a        = DataStorage.WarewolfAtom.NewDataString("a");
            var b        = DataStorage.WarewolfAtom.NewDataString("a");
            var comparer = new WarewolfAtomComparer();

            Assert.IsTrue(comparer.Equals(a, b));
        }
Beispiel #4
0
        public void WarewolfAtomComparer_Equals_BothNull_ReturnTrue()
        {
            var comparer = new WarewolfAtomComparer();

            Assert.IsTrue(comparer.Equals(null, null));
        }