public void AggregateTermRowGetValueDefaultsIntValue() { var row = new AggregateTermRow(ExpectedKey, expectedFields); var actual = row.GetValue("missing", "int", typeof(int)); Assert.Equal(default(int), actual); }
public void AggregateTermRowGetValueParsesIntValue() { var expected = expectedFields[1]; var row = new AggregateTermRow(ExpectedKey, expectedFields); var actual = row.GetValue(expected.Name, expected.Operation, typeof(int)); Assert.Equal(5, actual); }
public void AggregateTermRowGetValueParsesStringValue() { var expected = expectedFields[0]; var row = new AggregateTermRow(ExpectedKey, expectedFields); var actual = row.GetValue(expected.Name, expected.Operation, typeof(string)); Assert.Equal("mower", actual); }