瀏覽代碼

Improved test

Piotr Czajkowski 10 月之前
父節點
當前提交
b9982555ab
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      ExcelORM/ExcelORMTests/ReaderTests.cs

+ 4 - 1
ExcelORM/ExcelORMTests/ReaderTests.cs

@@ -56,7 +56,10 @@ public class ReaderTests
         Assert.Equal(results.Length, resultsWithTitle.Length);
 
         var resultsBadHeader = reader.Read<Test>("BadHeader").ToArray();
-        Assert.Empty(resultsBadHeader);
+        Assert.NotEmpty(resultsBadHeader);
+        Assert.All(resultsBadHeader, (x) => Assert.Null(x.Name));
+        Assert.All(resultsBadHeader, (x) => Assert.Null(x.Surname));
+        Assert.All(resultsBadHeader, (x) => Assert.NotNull(x.Job));
     }
     
     [Fact]