Beispiel #1
0
 public void ConvertFromInvariantStringTest()
 {
     tlog.Debug(tag, $"ConvertFromInvariantStringTest START");
     try
     {
         SizeTypeConverter t2 = new SizeTypeConverter();
         Assert.IsNotNull(t2, "null SizeTypeConverter");
         var b = t2.ConvertFromInvariantString("2,2");
         Assert.IsNotNull(b, "null Binding");
         var b2 = t2.ConvertFromInvariantString("2,2,2");
         Assert.IsNotNull(b2, "null Binding");
     }
     catch (Exception e)
     {
         Assert.Fail("Caught Exception" + e.ToString());
     }
     tlog.Debug(tag, $"ConvertFromInvariantStringTest END (OK)");
 }
Beispiel #2
0
        public void ConvertFromInvariantStringTest3()
        {
            tlog.Debug(tag, $"ConvertFromInvariantStringTest3 START");

            SizeTypeConverter t2 = new SizeTypeConverter();

            Assert.IsNotNull(t2, "null SizeTypeConverter");
            Assert.Throws <InvalidOperationException>(() => t2.ConvertFromInvariantString(null));

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