public void updateCname() { _sample = new NHibernateSample.Data.NHibernateSample(typeof(Customer)); Customer cm = _sample.GetCustomerById(1); _sample.changename(cm, "混蛋"); string name = _sample.GetCustomerById(1).name; Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AreEqual("混蛋", name); }
public void updateFname() { _sample2 = new NHibernateSample.Data.NHibernateSample(typeof(file)); file fl = _sample2.GetFileById(11); _sample2.changename(fl, "文件snoopy"); string name = _sample2.GetFileById(11).title; Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AreEqual("文件snoopy", name); }
public void updateFname() { _sample2 = new NHibernateSample.Data.NHibernateSample(typeof(file)); file fl= _sample2.GetFileById(11); _sample2.changename(fl,"文件snoopy"); string name = _sample2.GetFileById(11).title; Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AreEqual("文件snoopy", name); }