Esempio n. 1
0
        public void MethodToBeTested_BehaviorToBeTested_ExpectedResultOfTest()
        {
            //Arrange
            List <string> expected = new List <string> {
                "expectedOutput"
            };
            ClassName newVariable = new ClassName("input");

            //Act
            List <string> actual = newVariable.MethodName();

            //Assert
            CollectionAssert.AreEqual(expected, actual);
        }
Esempio n. 2
0
        public void MethodName2_DescriptionOfBehavior2_ExpectedResult2()
        {
            ClassName classObj = new ClassName("hi", 12, "hello");

            Assert.AreEqual(true, classObj.MethodName());
        }
Esempio n. 3
0
        public void MethodName_Spec_ExpectedOutput()
        {
            ClassName instanceName = new ClassName();

            Assert.AreEqual(ExpectedOutput, instanceName.MethodName(inputHere));
        }