Пример #1
0
        public void ClonedStructShouldBeIdentical()
        {
            var original = new CustomKeypadEffect(Color.Red);
            var clone    = original.Clone();

            Assert.That(clone, Is.EqualTo(original));
        }
Пример #2
0
        public void ClonedStructShouldBeIndependent()
        {
            var original = new CustomKeypadEffect(Color.Red);
            var clone    = original.Clone();

            clone.Set(Color.Blue);

            Assert.That(clone, Is.Not.EqualTo(original));
        }