Beispiel #1
0
        public void ShouldNotEqualEffectWithDifferentColorCastAsObject()
        {
            var effect = new StaticMouseEffect(Led.All, Color.Red);
            var obj    = new StaticMouseEffect(Led.All, Color.Blue) as object;

            Assert.False(effect.Equals(obj));
        }
Beispiel #2
0
        public void ShouldNotEqualEffectWithDifferentLedCastAsObject()
        {
            var effect = new StaticMouseEffect(Led.Strip11, Color.Red);
            var obj    = new StaticMouseEffect(Led.Backlight, Color.Red) as object;

            Assert.False(effect.Equals(obj));
        }
Beispiel #3
0
        public void ShouldNotEqualArbitraryObject()
        {
            var effect = new StaticMouseEffect(Led.All, Color.Red);
            var obj    = new object();

            Assert.False(effect.Equals(obj));
        }
Beispiel #4
0
        public void ShouldEqualEffectWithSameLedAndColorCastAsObject()
        {
            var effect = new StaticMouseEffect(Led.Strip3, Color.Red);
            var obj    = new StaticMouseEffect(Led.Strip3, Color.Red) as object;

            Assert.True(effect.Equals(obj));
        }
Beispiel #5
0
        public void ShouldNotEqualNull()
        {
            var effect = new StaticMouseEffect(Led.All, Color.Red);

            Assert.AreNotEqual(effect, null);
            Assert.False(effect.Equals(null));
        }