public void ConvertDashesToFloatArray_Should_Not_Throw() { var dashes = "0 A"; var target = StyleHelper.ConvertDashesToFloatArray(dashes, 1.0); Assert.Null(target); }
public void ConvertDashesToFloatArray_Should_Return_Dashes_Float_Array() { var dashes = "2 2 0 2 0 2"; var expected = new float[] { 2.0f, 2.0f, 0.0f, 2.0f, 0.0f, 2.0f }; var target = StyleHelper.ConvertDashesToFloatArray(dashes, 1.0); Assert.Equal(expected, target); }