Exemple #1
0
                public void TenCents_ReturnsFormatted()
                {
                    var usd = new Usd(10);

                    Assert.Equal("$0.10", usd.ToString());
                }
Exemple #2
0
                public void TenThousandCents_ReturnsFormatted()
                {
                    var usd = new Usd(10000);

                    Assert.Equal("$100.00", usd.ToString());
                }
Exemple #3
0
                public void OneHundredCents_ReturnsFormatted()
                {
                    var usd = new Usd(100);

                    Assert.Equal("$1.00", usd.ToString());
                }
Exemple #4
0
                public void OneCent_ReturnsFormatted()
                {
                    var usd = new Usd(1);

                    Assert.Equal("$0.01", usd.ToString());
                }