static void Main(string[] args) { PropTest pt = new PropTest(); pt.Name = "홍길동"; string na = pt.Name; Console.WriteLine("이름 : {0}", na); }
public void It_should_set_property_value() { var obj = new PropTest { Test = "Some text" }; obj.SetValue1("Test", "Some other text"); Assert.AreEqual(obj.Test, "Some other text"); }
public void It_should_get_property_value() { var obj = new PropTest{Test = "Some text"}; Assert.AreEqual("Some text", obj.GetValue("Test")); }