public void DeserislizeXML_Fail()
        {
            //Assert
            var ex = Assert.Throws <ArgumentException>(() => CommissionAccountSerializer.DeserializeXML("nonexistent file path here"));

            Assert.AreEqual(ExceptionMessages.CASerializerFailPath(), ex.Message);
        }
        public void DeserializeXML_OK()
        {
            //Arrange
            CommissionAccount baseAcc = new CommissionAccount("myCommissionXML_DeserializeTest", 10.234m, Currency.CHF);

            //Act
            CommissionAccountSerializer.SerializeXML(baseAcc);
            CommissionAccount newAcc = CommissionAccountSerializer.DeserializeXML("myCommissionXML_DeserializeTest.xml");

            //Assert
            Assert.AreEqual(baseAcc.AccountID, newAcc.AccountID);
            Assert.AreEqual(baseAcc.Money.Amount, newAcc.Money.Amount);
            Assert.AreEqual(baseAcc.Money.Curr, newAcc.Money.Curr);
        }