{
private ImageSource _imageSource;
private string _appResourcePath = Program.Current.DirectoryInfo.Resource;
- private static bool _flagOnLoadingStarted, _flagOnLoadingCompleted, _flagOnSourceChanged;
+ private bool _flagOnLoadingStarted, _flagOnLoadingCompleted, _flagOnSourceChanged;
[SetUp]
public void SetUp()
imageSource = (Uri)uri;
Assert.AreEqual(uri, ((UriImageSource)imageSource).Uri, "Can't setup implicit method");
}
-
- //[Test]
- [Category("P1")]
- [Description("Invoke OnLoadingCompleted method, and check whether OnLoadingCompleted method is invoked or not.")]
- [Property("SPEC", "Xamarin.Forms.ImageSource.OnLoadingCompleted M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MCST")]
- [Property("AUTHOR", "Nhu Anh, anh.vn@samsung.com")]
- public void OnLoadingCompleted_CHECK()
- {
- /* TEST CODE */
- //Assert.True(false, "[NA] Can't inherit this api for test");
- var source = "foo://example.com:8042/over/there?name=ferret#nose";
- var uri = new Uri(source);
- var subImageSoure = new SubImageSource();
-
- subImageSoure.Cancel();
- Assert.IsTrue(_flagOnLoadingCompleted, "Fail to cancel the image of loading");
- }
-
- //[Test]
- [Category("P1")]
- [Description("Invoke OnLoadingStarted method, and check whether OnLoadingStarted method is invoked or not.")]
- [Property("SPEC", "Xamarin.Forms.ImageSource.OnLoadingStarted M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MCST")]
- [Property("AUTHOR", "Nhu Anh, anh.vn@samsung.com")]
- public void OnLoadingStarted_CHECK()
- {
- /* TEST CODE */
- Assert.True(false, "[NA] Can't inherit this api for test");
- }
-
- //[Test]
- [Category("P1")]
- [Description("Invoke OnSourceChanged method, and check whether OnSourceChanged method is invoked or not.")]
- [Property("SPEC", "Xamarin.Forms.ImageSource.OnSourceChanged M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MCST")]
- [Property("AUTHOR", "Nhu Anh, anh.vn@samsung.com")]
- public async Task OnSourceChanged_CHECK()
- {
- /* TEST CODE */
- Assert.True(false, "[NA] Can't inherit this api for test");
- }
-
- //[Test]
- [Category("P1")]
- [Description("Invoke CancellationTokenSource method, and check whether CancellationTokenSource method is invoked or not.")]
- [Property("SPEC", "Xamarin.Forms.ImageSource.CancellationTokenSource M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MCST")]
- [Property("AUTHOR", "Nhu Anh, anh.vn@samsung.com")]
- public void CancellationTokenSource_CHECK()
- {
- /* TEST CODE */
- Assert.True(false, "[NA] Can't inherit this api for test");
- }
}
}