public void Be_Creatable() { var sut = new EmptyNZazuFieldBehavior(); sut.Should().NotBeNull(); sut.Should().BeAssignableTo <INZazuWpfFieldBehavior>(); sut.GetType().Name.Should().StartWith("Empty"); }
public void Do_Nothing() { var field = Substitute.For <INZazuWpfField>(); var sut = new EmptyNZazuFieldBehavior(); sut.AttachTo(field, null); sut.Detach(); field.ReceivedCalls().Should().BeEmpty(); }
public void Have_guard_clauses_on_ctor() { var sut = new EmptyNZazuFieldBehavior(); sut.Invoking(x => x.AttachTo(null, null)).Should().Throw <ArgumentNullException>(); }