public void Dynamic_Mutation_Removed() { // arrange var colValue1 = 300M; // act dynamic actual = new FluentColumnFamily <AsciiType>("Keyspace1", "Standard1"); actual.Test1 = colValue1; actual.RemoveColumn("Test1"); // assert var mutations = ((IFluentRecord)actual).MutationTracker.GetMutations().ToList(); Assert.AreEqual(2, mutations.Count()); Assert.AreEqual(MutationType.Added, mutations[0].Type); Assert.AreEqual(MutationType.Removed, mutations[1].Type); }
public void Mutation_Removed() { // arrange var col1 = new FluentColumn <AsciiType> { ColumnName = "Test1", ColumnValue = 300M }; // act var actual = new FluentColumnFamily <AsciiType>("Keyspace1", "Standard1"); actual.Columns.Add(col1); actual.RemoveColumn("Test1"); // assert var mutations = actual.MutationTracker.GetMutations().ToList(); Assert.AreEqual(2, mutations.Count()); Assert.AreEqual(MutationType.Added, mutations[0].Type); Assert.AreEqual(MutationType.Removed, mutations[1].Type); }