using System; using System.Collections.Generic; using System.Globalization; using System.Text; using PixiEditor.Helpers.Converters; using Xunit; namespace PixiEditorTests.HelpersTests.ConvertersTests { public class DoubleToIntConverterTest { [Fact] public void TestThatConvertConvertsDoubleToInt() { DoubleToIntConverter converter = new DoubleToIntConverter(); var value = converter.Convert(5.123, typeof(int), null, CultureInfo.CurrentCulture); Assert.IsType(value); Assert.Equal(5, (int)value); } } }