示例#1
0
        public void Vector2TypeConverterConvertFromInvariantStringNullPath()
        {
            tlog.Debug(tag, $"Vector2TypeConverterConvertFromInvariantStringNullPath START");

            var testingTarget = new Vector2TypeConverterImpl();

            Assert.IsNotNull(testingTarget, "Can't create success object Vector2TypeConverter.");
            Assert.IsInstanceOf <Vector2TypeConverter>(testingTarget, "Should return Vector2TypeConverter instance.");

            Assert.Throws <InvalidOperationException>(() => testingTarget.ConvertFromInvariantString(null));
            tlog.Debug(tag, $"Vector2TypeConverterConvertFromInvariantStringNullPath END");
        }
示例#2
0
        public void Vector2TypeConverterConvertFromInvariantString()
        {
            tlog.Debug(tag, $"Vector2TypeConverterConvertFromInvariantString START");

            var testingTarget = new Vector2TypeConverterImpl();

            Assert.IsNotNull(testingTarget, "Can't create success object Vector2TypeConverter.");
            Assert.IsInstanceOf <Vector2TypeConverter>(testingTarget, "Should return Vector2TypeConverter instance.");

            var result = testingTarget.ConvertFromInvariantString("100");

            tlog.Debug(tag, "ConvertFromInvariantString : " + result);

            tlog.Debug(tag, $"Vector2TypeConverterConvertFromInvariantString END");
        }