public void ToPriceAndEquals() { var a = new Accounting() { Description = "xyz" }; var up = new UnitPrice(1, 20, CurrencyUnit.EUR, TimeSpanUnit.Day) { Description = "abc", Accounting = a }; var p = new Price(1, 20, CurrencyUnit.EUR) { Description = "abc", Accounting = a }; Assert.AreEqual(p, up.AsPrice()); }