public void AnimatedImageVisualConstructor() { tlog.Debug(tag, $"AnimatedImageVisualConstructor START"); var testingTarget = new AnimatedImageVisual(); Assert.IsNotNull(testingTarget, "Can't create success object AnimatedImageVisual"); Assert.IsInstanceOf <AnimatedImageVisual>(testingTarget, "Should be an instance of AnimatedImageVisual type."); testingTarget.Dispose(); tlog.Debug(tag, $"AnimatedImageVisualConstructor END (OK)"); }
public void AnimatedImageVisualURL() { tlog.Debug(tag, $"AnimatedImageVisualURL START"); var testingTarget = new AnimatedImageVisual(); Assert.IsNotNull(testingTarget, "Can't create success object AnimatedImageVisual"); Assert.IsInstanceOf <AnimatedImageVisual>(testingTarget, "Should be an instance of AnimatedImageVisual type."); testingTarget.URL = image_path; Assert.AreEqual(image_path, testingTarget.URL, "Retrieved URL should be equal to set value"); testingTarget.Dispose(); tlog.Debug(tag, $"AnimatedImageVisualURL END (OK)"); }
public void AnimatedImageVisualBatchSize() { tlog.Debug(tag, $"AnimatedImageVisualBatchSize START"); var testingTarget = new AnimatedImageVisual(); Assert.IsNotNull(testingTarget, "Can't create success object AnimatedImageVisual"); Assert.IsInstanceOf <AnimatedImageVisual>(testingTarget, "Should be an instance of AnimatedImageVisual type."); List <string> list = new List <string>(); list.Add(image_path); testingTarget.URLS = list; testingTarget.BatchSize = 1; Assert.AreEqual(1, testingTarget.BatchSize, "Retrieved BatchSize should be equal to set value"); testingTarget.Dispose(); tlog.Debug(tag, $"AnimatedImageVisualBatchSize END (OK)"); }
public void AnimatedImageVisualLoopCount() { tlog.Debug(tag, $"AnimatedImageVisualLoopCount START"); var testingTarget = new AnimatedImageVisual(); Assert.IsNotNull(testingTarget, "Can't create success object AnimatedImageVisual"); Assert.IsInstanceOf <AnimatedImageVisual>(testingTarget, "should be an instance of AnimatedImageVisual type."); List <string> list = new List <string>(); list.Add(image_path); testingTarget.URLS = list; testingTarget.LoopCount = 0.1f; Assert.AreEqual(0.1f, testingTarget.LoopCount, "Retrieved LoopCount should be equal to set value"); testingTarget.Dispose(); tlog.Debug(tag, $"AnimatedImageVisualLoopCount END (OK)"); }
public void AnimatedImageVisualURLS() { tlog.Debug(tag, $"AnimatedImageVisualURLS START"); var testingTarget = new AnimatedImageVisual(); Assert.IsNotNull(testingTarget, "Can't create success object AnimatedImageVisual"); Assert.IsInstanceOf <AnimatedImageVisual>(testingTarget, "should be an instance of AnimatedImageVisual type."); List <string> list = new List <string>(); list.Add(image_path); testingTarget.URLS = list; string url = testingTarget.URLS[0] as string; Assert.AreEqual(image_path, url, "Retrieved URLS should be equal to set value"); testingTarget.Dispose(); tlog.Debug(tag, $"AnimatedImageVisualURLS END (OK)"); }