Esempio n. 1
0
        public void Class1_Initialize()
        {
            // Arrange
            const string expectedValue = Class1.DEFAULT_VALUE;
            var instance = new Class1();

            // Act
            instance.Initialize();
            string actualValue = instance.Property1;

            // Assert
            Assert.AreEqual(expectedValue, actualValue);
        }
Esempio n. 2
0
 private static void Main()
 {
     var a = new Class1();
     a.Initialize();
     Console.WriteLine("The property value is: " + a.Property1);
 }