public void GetDateTime_CorrectParams_ReturnDateTime(int day, int month, int year, int hours, int minutes, int seconds, int milliseconds) { var expDt = new DateTime(year, month, day, hours, minutes, seconds, milliseconds); var dt = generator.GetDateTime(day, month, year, hours, minutes, seconds, milliseconds); dt.Should().Be(expDt); }
public void StoreAsVariableTimeLong(int hours, int minutes, int seconds, int milliseconds, string varName) { this.variableController.Variables.Should().NotContainKey(varName, $"переменная \"{varName}\" уже существует"); var dt = fakerGenerator.GetDateTime(1, 1, 1, hours, minutes, seconds, milliseconds); dt.Should().NotBeNull($"проверьте корректность создания времени hours:{hours},minutes:{minutes},seconds:{seconds},milliseconds:{milliseconds}"); this.variableController.SetVariable(varName, dt.GetType(), dt); }