public void Fails_to_build_code_with_nonunique_class_full_names() { CodeModelFactory factory = new CodeModelFactory(); Should.Throw <NonUniqueFullNameException>(() => factory.CreateProject(_testDataFactory.GetTwoClassesWithSameFullName())); }