public void With_Should_Add_ControlRef_To_Current_Instance() { var controlRef = new ControlRef(); _sut.With(() => controlRef); Assert.AreEqual(1,_sut._controlRefs.Count); Assert.AreEqual(controlRef,_sut._controlRefs[0]); }
public void Setup() { _sut = ControlRef.Create("MyControlRef"); }