예제 #1
0
        public void ObjectsCanBeCreatedWithDefaultProperites()
        {
            DrumSet drums = new DrumSet();

            Assert.AreEqual(FILL_ME_IN, drums.NumberOfDrums);
            Assert.AreEqual(FILL_ME_IN, drums.Color);
            Assert.AreEqual(FILL_ME_IN, drums.HasSticks);
        }
예제 #2
0
        public void PropertiesOfObjectsCanGetOverrided()
        {
            DrumSet drums = new DrumSet();

            drums.NumberOfDrums = 8;
            drums.Color         = "FILL_ME_IN";
            drums.HasSticks     = false;

            Assert.AreEqual(FILL_ME_IN, drums.NumberOfDrums);
            Assert.AreEqual("blue", drums.Color);
            Assert.AreEqual(FILL_ME_IN, drums.HasSticks);
        }