//------------------------------------------------------------------------- public virtual void test_attributes() { assertEquals(sut2().getAttribute(AttributeType.NAME), "NAME"); assertEquals(sut2().findAttribute(AttributeType.NAME).get(), "NAME"); assertThrows(typeof(System.ArgumentException), () => sut2().getAttribute(AttributeType.of("Foo"))); EtdContractSpec updated = sut2().withAttribute(AttributeType.NAME, "FOO"); assertEquals(updated.getAttribute(AttributeType.NAME), "FOO"); }