Пример #1
0
            public void ReturnsTrueForSnowflakeWithSameValue()
            {
                var snowflake      = new Snowflake(143867839282020352u);
                var otherSnowflake = new Snowflake(143867839282020352u);

                Assert.True(snowflake.Equals(otherSnowflake));
            }
Пример #2
0
            public void ReturnsFalseForSnowflakeWithDifferentValue()
            {
                var snowflake      = new Snowflake(143867839282020352u);
                var otherSnowflake = new Snowflake(169780104564572169u);

                Assert.False(snowflake.Equals(otherSnowflake));
            }
Пример #3
0
            public void ReturnsFalseForNonSnowflakeObject()
            {
                var notSnowflake = "henlo";
                var snowflake    = new Snowflake(143867839282020352u);

                // ReSharper disable once SuspiciousTypeConversion.Global
                Assert.False(snowflake.Equals(notSnowflake));
            }
Пример #4
0
            public void ReturnsTrueForSelf()
            {
                var snowflake = new Snowflake(143867839282020352u);

                Assert.True(snowflake.Equals(snowflake));
            }