コード例 #1
0
        public void UnwindTest()
        {
            ToyPlane toy = new ToyPlane();

            //isWoundUp = true
            toy.windUp();
            string isWoundUpString = toy.getWindUpString();

            Assert.AreEqual(isWoundUpString, $"{toy} is wound up.");
            //isWoundUp = false
            toy.unWind();
            isWoundUpString = toy.getWindUpString();
            Assert.AreEqual(isWoundUpString, $"{toy} is not wound up.");
        }