Ejemplo n.º 1
0
        public void ShouldNotEqualNull()
        {
            var effect = new StaticChromaLinkEffect(Color.Red);

            Assert.AreNotEqual(effect, null);
            Assert.False(effect.Equals(null));
        }
Ejemplo n.º 2
0
        public void ShouldEqualEffectWithSameColorCastAsObject()
        {
            var effect = new StaticChromaLinkEffect(Color.Red);
            var obj    = new StaticChromaLinkEffect(Color.Red) as object;

            Assert.True(effect.Equals(obj));
        }
Ejemplo n.º 3
0
        public void ShouldNotEqualEffectWithDifferentColorCastAsObject()
        {
            var effect = new StaticChromaLinkEffect(Color.Red);
            var obj    = new StaticChromaLinkEffect(Color.Blue) as object;

            Assert.False(effect.Equals(obj));
        }
Ejemplo n.º 4
0
        public void ShouldNotEqualArbitraryObject()
        {
            var effect = new StaticChromaLinkEffect(Color.Red);
            var obj    = new object();

            Assert.False(effect.Equals(obj));
        }