public void CanAdapt_WithInvalidType_ShouldReturnFalse() { // Arrange var sut = new RawPropertyLayoutAdapter(); var attribute = new ExceptionLayoutAttribute(); // Act var result = sut.CanAdapt(attribute); // Assert Assert.IsFalse(result); }
public void CanAdapt_WithValidType_ShouldReturnTrue() { // Arrange var sut = new RawPropertyLayoutAdapter(); var attribute = new RawPropertyLayoutAttribute("test"); // Act var result = sut.CanAdapt(attribute); // Assert Assert.IsTrue(result); }
public void Adapt_WithLayoutAttribute_ShouldReturnIRawLayout() { // Arrange var sut = new RawPropertyLayoutAdapter(); LayoutAttribute attribute = new RawPropertyLayoutAttribute("test"); // Act var result = sut.Adapt(attribute); // Assert Assert.IsInstanceOfType(result, typeof(IRawLayout)); }
public static void Initialize(TestContext testContext) { sut = new RawPropertyLayoutAdapter(); }