public void ExcelTimeTests_ConstructorWithValue_ShouldSetSecond() { // Arrange decimal value = 3662M / (decimal)SecondsPerDay; // Act var time = new ExcelTime(value); // Assert Assert.AreEqual(2, time.Second); }
public void TimeFormula_ValueIsSetFromConstructorValidateSecond() { // Arrange var time = new ExcelTime(0.812M); LoadXmlTestData("A1", "time", "0.812"); // Act var formula = new ExcelDataValidationTime(_sheet, "A1", ExcelDataValidationType.Time, _dataValidationNode, _namespaceManager); // Assert Assert.AreEqual(time.Second.Value, formula.Formula.Value.Second.Value); }
public void Cleanup() { _time = null; }
public void Setup() { _time = new ExcelTime(); }