public void Constructor_ExpectedValues() { // Call var converter = new IconToImageSourceConverter(); // Assert Assert.IsInstanceOf <IValueConverter>(converter); }
public void ConvertBack_Always_ThrowsNotSupportedException() { // Setup var converter = new IconToImageSourceConverter(); // Call void Call() => converter.ConvertBack(null, null, null, null); // Assert Assert.Throws <NotSupportedException>(Call); }
public void Convert_ValidIcon_ReturnsImageSource() { // Setup var converter = new IconToImageSourceConverter(); // Call object imageSource = converter.Convert(Resources.warning, null, null, null); // Assert Assert.IsInstanceOf <ImageSource>(imageSource); }