Exemple #1
0
        public void TestMethod1()
        {
            //Arrange
            SampleClass sampleClass = new SampleClass();
            //Act
            string result = sampleClass.AnotherMessage();

            //Assert
            //Expected
            //Actual
            Assert.AreEqual("Hello!", result);
        }
Exemple #2
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            SampleClass sampleClass = new SampleClass();

            sampleClass.AnotherMessage();

            Generics <string> generics = new Generics <string>();

            generics.Add("Hi!");

            Generics <SampleClass> generics1 = new Generics <SampleClass>();

            generics1.Add(sampleClass);
        }