public void ToAttributeBuilder_GivenNullCustomAttributeData_ShouldThrow() { //--------------- Arrange ------------------- CustomAttributeData data = null; //--------------- Assume ---------------- //--------------- Act ---------------------- Expect(() => data.ToAttributeBuilder()) .To.Throw <ArgumentNullException>() .With.Message.Containing("data"); //--------------- Assert ----------------------- }