Skip to content

Commit

Permalink
Ignore irelevant tests for NtsProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
FObermaier committed Mar 27, 2020
1 parent 002ec18 commit 345f718
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions UnitTests/Data/Providers/DataTablePointTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ internal static DataTable CreateDataTableSource()
new DataColumn("y", typeof (double))
});

var rnd = new Random();
var rnd = new Random(17);
for (int i = 0; i < 100; i++)
{
DataRow row = source.NewRow();
Expand Down Expand Up @@ -184,4 +184,4 @@ public void OpenAndCloseUpdatesIsOpenPropertyCorrectly()
Assert.AreEqual(false, provider.IsOpen);
}
}
}
}
11 changes: 8 additions & 3 deletions UnitTests/Data/Providers/NtsProviderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace UnitTests.Data.Providers
{
public class NtsProviderTests
{
[Test]
[Test, Ignore("not relevant")]
public void FeatureWithNullDataThrowsException()
{
/*
Expand All @@ -20,17 +20,21 @@ public void FeatureWithNullDataThrowsException()
var ds = DataTablePointTests.CreateDataTableSource();
// add row with null value
ds.BeginLoadData();

var row = ds.LoadDataRow(new object[] { 1001, null, 1, 1 }, LoadOption.OverwriteChanges);
ds.EndLoadData();
Assert.That(ds.Rows.Count, Is.EqualTo(101));

var dsp = new DataTablePoint(ds, "oid", "x", "y");
Assert.That(dsp.GetFeatureCount(), Is.EqualTo(101));

/*
* act
*/
// Create provider
NtsProvider p = null;
Assert.DoesNotThrow(() => p = new NtsProvider(dsp));

/*
* assert
*/
Expand All @@ -41,7 +45,8 @@ public void FeatureWithNullDataThrowsException()
#endif

}
[Test]

[Test, Ignore("not relevant")]
public void FeatureWithNullDataThrowsException2()
{
// arrange
Expand Down

0 comments on commit 345f718

Please sign in to comment.