@Test public void shouldReturnPropertiesPopulatedWithNantpath() { NantTask nantTask = new NantTask(); assertThat(nantTask.getPropertiesForDisplay().isEmpty(), is(true)); nantTask.setBuildFile("some-file.xml"); nantTask.setTarget("bulls_eye"); nantTask.setWorkingDirectory("some/dir"); nantTask.setNantPath("foo/bar/baz"); assertThat(nantTask.getPropertiesForDisplay(), hasItems(new TaskProperty("Nant Path", "foo/bar/baz", "nant_path"), new TaskProperty("Build File", "some-file.xml", "build_file"), new TaskProperty("Target", "bulls_eye", "target"), new TaskProperty("Working Directory", "some/dir", "working_directory"))); assertThat(nantTask.getPropertiesForDisplay().size(), is(4)); }