Beispiel #1
0
        public void Test_01()
        {
            Sample_01 sample = new Sample_01();

            List <string> list = new List <string>();

            sample.PropertyChanged += (s, e) => { list.Add(e.PropertyName); };

            sample.Prop1 = "Value";

            Assert.AreEqual(1, list.Count);
            Assert.AreEqual(nameof(Sample_01.Prop1), list[0]);
        }
Beispiel #2
0
        public void Test_01()
        {
            Sample_01 sample = new Sample_01();

            List <string> list = new List <string>();

            sample.PropertyChanged += (s, e) => { list.Add(e.PropertyName); };

            Culture.Current = CultureInfo.InvariantCulture;

            Assert.AreEqual(1, list.Count);
            Assert.AreEqual(nameof(Sample_01.Culture), list[0]);
        }