コード例 #1
0
        public override bool Equals(object obj)
        {
            FileNameAndProjectName rhs = obj as FileNameAndProjectName;

            if (rhs != null)
            {
                return((rhs.FileName == FileName) &&
                       (rhs.ProjectName == ProjectName));
            }
            return(false);
        }
コード例 #2
0
 protected override void LogAddedFileToProject(string fileName, string projectName)
 {
     FileNameAndProjectNamePassedToLogAddedFileToProject =
         new FileNameAndProjectName(fileName, projectName);
 }
コード例 #3
0
		public void AddFile_NewFileAlreadyExistsInProject_FileIsStillLogged ()
		{
			CreateTestProject (@"d:\temp\MyProject.csproj");
			project.Name = "MyTestProject";
			AddFileToProject (@"src\files\abc.cs");
			CreateProjectSystem (project);

			AddFile (@"src\files\abc.cs");

			var expectedFileNameAndProjectName = new FileNameAndProjectName {
				FileName = @"src\files\abc.cs".ToNativePath (),
				ProjectName = "MyTestProject"
			};

			Assert.AreEqual (expectedFileNameAndProjectName, projectSystem.FileNameAndProjectNamePassedToLogAddedFileToProject);
		}
コード例 #4
0
		protected override void LogAddedFileToProject (string fileName, string projectName)
		{
			FileNameAndProjectNamePassedToLogAddedFileToProject =
				new FileNameAndProjectName (fileName, projectName);
		}