public void ReturnsTrueForSnowflakeWithSameValue() { var snowflake = new Snowflake(143867839282020352u); var otherSnowflake = new Snowflake(143867839282020352u); Assert.True(snowflake.Equals(otherSnowflake)); }
public void ReturnsFalseForSnowflakeWithDifferentValue() { var snowflake = new Snowflake(143867839282020352u); var otherSnowflake = new Snowflake(169780104564572169u); Assert.False(snowflake.Equals(otherSnowflake)); }
public void ReturnsFalseForNonSnowflakeObject() { var notSnowflake = "henlo"; var snowflake = new Snowflake(143867839282020352u); // ReSharper disable once SuspiciousTypeConversion.Global Assert.False(snowflake.Equals(notSnowflake)); }
public void ReturnsTrueForSelf() { var snowflake = new Snowflake(143867839282020352u); Assert.True(snowflake.Equals(snowflake)); }