public void DefaultConstructor_ExpectedValues() { // Call var converter = new SelectedVertexLineWidthConverter(); // Assert Assert.IsInstanceOf <IValueConverter>(converter); }
public void ConvertBack_ThrowNotSupportedException() { // Setup var converter = new SelectedVertexLineWidthConverter(); // Call TestDelegate call = () => converter.ConvertBack(string.Empty, typeof(int), null, CultureInfo.InvariantCulture); // Assert Assert.Throws <NotSupportedException>(call); }
public void Convert_IntValue_ReturnIntValue() { // Setup var converter = new SelectedVertexLineWidthConverter(); // Call var convertedValue = (int)converter.Convert(2, typeof(int), null, CultureInfo.InvariantCulture); // Assert Assert.AreEqual(3, convertedValue); }
public void Convert_ValueNull_ReturnNull() { // Setup var converter = new SelectedVertexLineWidthConverter(); // Call object convertedValue = converter.Convert(null, typeof(int), null, CultureInfo.InvariantCulture); // Assert Assert.IsNull(convertedValue); }