From 38c6a71919ad3895e3ba61d7a888012670d26303 Mon Sep 17 00:00:00 2001 From: andersnm Date: Fri, 2 Oct 2020 10:42:01 +0200 Subject: [PATCH] More tests --- test/ExcelNumberFormat.Tests/Class1.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/ExcelNumberFormat.Tests/Class1.cs b/test/ExcelNumberFormat.Tests/Class1.cs index 3efefbf..e0f21aa 100644 --- a/test/ExcelNumberFormat.Tests/Class1.cs +++ b/test/ExcelNumberFormat.Tests/Class1.cs @@ -148,13 +148,14 @@ public void TestDate() [TestMethod] public void TestNumericDate1900() { - // Test("0", "dd/mm/yyyy", "00/01/1900"); // not work: strings are always formatted as text using the third section + Test("0", "dd/mm/yyyy", "0"); Test(0, "dd/mm/yyyy", "00/01/1900"); Test(0d, "dd/mm/yyyy", "00/01/1900"); Test((short)0, "dd/mm/yyyy", "00/01/1900"); Test(1, "dd/mm/yyyy", "01/01/1900"); Test(60, "dd/mm/yyyy", "29/02/1900"); Test(61, "dd/mm/yyyy", "01/03/1900"); + Test(43648, "[$-409]d\\-mmm\\-yyyy;@", "2-Jul-2019"); } [TestMethod]