示例#1
0
 public void should_can_not_set_value_when_cell_is_fixed()
 {
     var cell = new Cell(2, true);
     Assert.Equal(true, cell.Locked);
     cell.Value = 3;
     Assert.Equal(2, cell.Value);
     cell.Locked = false;
     cell.Value = 3;
     Assert.Equal(3, cell.Value);
 }