コード例 #1
0
        public void GetAppleTest()
        {
            string fruit = "apple";

            var apples = new Apples(fruit);

            string output = apples.GetApple();

            Assert.AreEqual(fruit, output);
        }
コード例 #2
0
        public void GetAppleTest()
        {
            //arrange
            string myObject = "apple";

            //act
            string output = "apple";

            //assert
            Assert.AreEqual(output, apples.GetApple());
        }
コード例 #3
0
        public void IsAppleAdded()
        {
            Apples apple = new Apples();

            Assert.Equal("apple", apple.GetApple());
        }
コード例 #4
0
        public void TestingApples()
        {
            var apples = new Apples();

            Assert.Equal("apple", apples.GetApple());
        }
コード例 #5
0
        public void TestCase()
        {
            Apples apple = new Apples();

            Assert.AreEqual("apple", apple.GetApple());
        }