public void Test_03() { Sample_03 sample = new Sample_03(); List <string> list = new List <string>(); sample.PropertyChanged += (s, e) => { list.Add(e.PropertyName); }; Disposable.Dispose(sample); Culture.Current = CultureInfo.InvariantCulture; Assert.AreEqual(0, list.Count); }
public void Test_03() { Sample_03 sample = new Sample_03(); List <string> list = new List <string>(); sample.PropertyChanged += (s, e) => { list.Add(e.PropertyName); }; sample.Prop1 = "Value"; Assert.AreEqual(2, list.Count); Assert.AreEqual(nameof(Sample_03.Prop1), list[0]); Assert.AreEqual(nameof(Sample_03.Prop2), list[1]); }