public void TestMethod1() { //Arrange SampleClass sampleClass = new SampleClass(); //Act string result = sampleClass.AnotherMessage(); //Assert //Expected //Actual Assert.AreEqual("Hello!", result); }
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); }