Ejemplo n.º 1
0
		private static string RemoveLabels(string file, params string[] labels)
		{
			var code = dir.GetFile(file).ContentAsUtf8();
			var remover = new CommonRegionRemover();
			IEnumerable<Label> notRemoved;
			code = remover.Remove(code, labels.Select(s => new Label { Name = s }), out notRemoved);
			Assert.IsEmpty(notRemoved);
			return code;
		}
        private static string RemoveLabels(string file, params string[] labels)
        {
            var code    = dir.GetFile(file).ContentAsUtf8();
            var remover = new CommonRegionRemover();
            IEnumerable <Label> notRemoved;

            code = remover.Remove(code, labels.Select(s => new Label {
                Name = s
            }), out notRemoved);
            Assert.IsEmpty(notRemoved);
            return(code);
        }