public void DoubleParserShouldThrowIfArgumentIsNull()
 {
     var parser = new DoubleArgumentParser();
     parser.Parse(null);
 }
 public void DoubleParserConvertStringToDoubleWithDotSeparator()
 {
     var parser = new DoubleArgumentParser();
     var result = parser.Parse("3.3");
     Assert.AreEqual(3.3d, result);
 }
 public void DoubleParserShouldConvertIntToDouble()
 {
     var parser = new DoubleArgumentParser();
     var result = parser.Parse(3);
     Assert.AreEqual(3d, result);
 }
 public void DoubleParserConvertDateStringToDouble()
 {
     var parser = new DoubleArgumentParser();
     var result = parser.Parse("3.3.2015");
     Assert.AreEqual(new DateTime(2015,3,3).ToOADate(), result);
 }