public void UpdateInvoiceCategory_UpdatingUnitsOnlyChangesUnits() { _todelete = Api.CreateInvoiceCategory("Test Update Invoice Category", useAsExpense: true, useAsService: true); Assert.Equal(true, _todelete.UseAsExpense); var updated = Api.UpdateInvoiceCategory(_todelete.Id, useAsExpense: false); // stuff changed Assert.NotEqual(_todelete.UseAsExpense, updated.UseAsExpense); Assert.Equal(false, updated.UseAsExpense); // stuff didn't change Assert.Equal(_todelete.Name, updated.Name); Assert.Equal(_todelete.UseAsService, updated.UseAsService); }
public void CreateInvoiceCategory_ReturnsANewInvoiceCategory() { _todelete = Api.CreateInvoiceCategory("Test Create Invoice Category"); Assert.Equal("Test Create Invoice Category", _todelete.Name); }