Exemplo n.º 1
0
        public void ShouldGetBeginningOfFinancialYear(string date, string expected)
        {
            var actual =
                _sut.GetBeginningFinancialYear(DateTime.ParseExact(date, "dd/MM/yyyy", CultureInfo.InvariantCulture));

            actual.Should().Be(DateTime.ParseExact(expected, "dd/MM/yyyy", CultureInfo.InvariantCulture));
        }
 public void ItShouldTestTheBehaviour(string testDate, string expected)
 {
     Assert.AreEqual(DateTime.Parse(expected),
                     _unit.GetBeginningFinancialYear(DateTime.Parse(testDate)));
 }