Example #1
0
        public void Convert_ValueType_EqualValue()
        {
            var subject = new UnityValueConverter <int>();
            var value   = 5789;

            var result = subject.Convert(value, null);

            Assert.AreEqual(value, result);
        }
        public void Convert_ValueType_EqualValue()
        {
            var subject = new UnityValueConverter<int>();
            var value = 5789;

            var result = subject.Convert(value, null);

            Assert.AreEqual(value, result);
        }
Example #3
0
        public void Convert_ReferenceType_SameInstance()
        {
            var subject = new UnityValueConverter <byte[]>();
            var value   = new byte[5];

            var result = subject.Convert(value, null);

            Assert.IsTrue(ReferenceEquals(value, result));
        }
        public void Convert_ReferenceType_SameInstance()
        {
            var subject = new UnityValueConverter<byte[]>();
            var value = new byte[5];

            var result = subject.Convert(value, null);

            Assert.IsTrue(ReferenceEquals(value, result));
        }