Beispiel #1
0
        public void GetSetTest()
        {
            var bindable = new Bindable <int>();

            bindable.Set(10);

            // ge the value using Get();
            var val = bindable.Get();

            Assert.AreEqual(10, val, "The value should be set correctly");

            // get the value using implicit assignment operator
            int val2 = bindable;

            Assert.AreEqual(10, val2, "The returned value should be 10");
        }