public void ResourceFileCollectionWebProject()
        {
            Common.IExtractResourceAction actionObject = new Common.WebsiteCSharpExtractResourceAction();
            Project testProject = (Project)(extensibility.Solution.Projects.Item(4));
            ResourceFileCollection collection = new ResourceFileCollection(testProject, new FilterMethod(actionObject.IsValidResourceFile));

            String[] names = new string[] { "Resource.resx" };
            Assert.AreEqual(names.Length, collection.Count, Messages.ResourceFilesCountInvalid);
            foreach (string name in names)
            {
                Assert.IsNotNull(collection.GetResourceFile(name), Messages.ResourceFileNotFound);
            }
        }
 public void ResourceFileCollectionCSharpProject()
 {
     // Get Project object
     Project testProject = (Project)(extensibility.Solution.Projects.Item(3));
     IExtractResourceAction action = new GenericCSharpExtractResourceAction();
     ResourceFileCollection collection = new ResourceFileCollection(testProject, new FilterMethod(action.IsValidResourceFile));
     String[] names = new string[] { "Resource1.resx", "Test1.resx", "Resources.resx" };
     Assert.AreEqual(names.Length, collection.Count, Messages.ResourceFilesCountInvalid);
     foreach (string name in names)
     {
         Assert.IsNotNull(collection.GetResourceFile(name), Messages.ResourceFileNotFound);
     }
 }
        public void ResourceFileCollectionCSharpProject()
        {
            // Get Project object
            Project testProject               = (Project)(extensibility.Solution.Projects.Item(3));
            IExtractResourceAction action     = new GenericCSharpExtractResourceAction();
            ResourceFileCollection collection = new ResourceFileCollection(testProject, new FilterMethod(action.IsValidResourceFile));

            String[] names = new string[] { "Resource1.resx", "Test1.resx", "Resources.resx" };
            Assert.AreEqual(names.Length, collection.Count, Messages.ResourceFilesCountInvalid);
            foreach (string name in names)
            {
                Assert.IsNotNull(collection.GetResourceFile(name), Messages.ResourceFileNotFound);
            }
        }
 public void ResourceFileCollectionWebProject()
 {
     Common.IExtractResourceAction actionObject = new Common.WebsiteCSharpExtractResourceAction();
     Project testProject = (Project)(extensibility.Solution.Projects.Item(4));
     ResourceFileCollection collection = new ResourceFileCollection(testProject, new FilterMethod(actionObject.IsValidResourceFile));
     String[] names = new string[] { "Resource.resx" };
     Assert.AreEqual(names.Length, collection.Count, Messages.ResourceFilesCountInvalid);
     foreach (string name in names)
     {
         Assert.IsNotNull(collection.GetResourceFile(name), Messages.ResourceFileNotFound);
     }
 }