<ProgramFilesX64>\Microsoft SDKs\Azure\.NET SDK\v2.9\bin\plugins\Diagnostics\Newtonsoft.Json.dll AWSSDK.Glue AWSSDK.S3 FluentAssertions Newtonsoft.Json Amazon Amazon.Auth.AccessControlPolicy Amazon.Auth.AccessControlPolicy.ActionIdentifiers Amazon.Internal Amazon.MissingTypes Amazon.Runtime Amazon.Runtime.CredentialManagement Amazon.Runtime.CredentialManagement.Internal Amazon.Runtime.EventStreams Amazon.Runtime.EventStreams.Internal Amazon.Runtime.Internal Amazon.Runtime.Internal.Auth Amazon.Runtime.Internal.Settings Amazon.Runtime.Internal.Transform Amazon.Runtime.Internal.Util Amazon.Runtime.SharedInterfaces Amazon.Runtime.SharedInterfaces.Internal Amazon.S3 Amazon.S3.Encryption Amazon.S3.Encryption.Internal Amazon.S3.Internal Amazon.S3.IO Amazon.S3.Model Amazon.S3.Model.Internal.MarshallTransformations Amazon.S3.Transfer Amazon.S3.Util Amazon.Util Amazon.Util.Internal Amazon.Util.Internal.PlatformServices FluentAssertions Newtonsoft.Json Newtonsoft.Json.Converters Newtonsoft.Json.Linq Newtonsoft.Json.Schema Newtonsoft.Json.Serialization System System.Diagnostics System.Diagnostics.Tracing System.IO.Compression ThirdParty.BouncyCastle.Asn1 ThirdParty.BouncyCastle.Asn1.Utilities ThirdParty.BouncyCastle.Math ThirdParty.BouncyCastle.OpenSsl ThirdParty.BouncyCastle.Utilities.IO.Pem ThirdParty.Ionic.Zlib ThirdParty.Json.LitJson ThirdParty.MD5 void Main() { for (var x = 0; x > -5; x--) { try { var testDate = DateTime.Now.AddYears(x); testDate.Dump($"{x}"); RunValidation(testDate); } catch (Exception ex) { $"{x} - {ex.Message}".Dump(); } } } public void RunValidation(DateTime testDate) { testDate.AddMilliseconds(-1).GetPrettyDate().Should().Be("just now"); testDate.AddSeconds(-1).GetPrettyDate().Should().Be("just now"); testDate.AddMinutes(-1).GetPrettyDate().Should().Be("1 minute ago"); for (var x = -2; x >= -59; x--) { testDate.AddMinutes(-x).GetPrettyDate().Should().Be($"{x} minutes ago"); } testDate.AddHours(-1).GetPrettyDate().Should().Be("1 hour ago"); for (var x = -2; x >= -23; x--) { testDate.AddHours(-x).GetPrettyDate().Should().Be($"{x} hours ago"); } testDate.AddDays(-1).GetPrettyDate().Should().Be("yesterday"); for (var x = -2; x >= -364; x--) { testDate.AddDays(-x).GetPrettyDate().Should().Be($"{x} days ago"); } testDate.AddMonths(-1).GetPrettyDate().Should().Be("5 weeks ago"); for (var x = -2; x >= -364; x--) { testDate.AddMonths(-x).GetPrettyDate().Should().Be($"{x} months ago"); } } // Define other methods and classes here