public void GeneratingSource_WithParameterizedValues_ResultsInMethods() { var entries = new List <TextResource> { new TextResource("A.B.D", "A.B.D"), new TextResource("A", "A{param1}{param2}{param1}"), new TextResource("A.B.D.E", "A.B.D.E"), }; var group = _uut.CreateGroup(entries); var metadata = new ResourceGenerationMetadata("Test", "TestNamespace"); var source = _uut.GenerateSource(group, metadata); Assert.That(source, Is.EqualTo(GeneratingSourceWithParameterizedValuesResultsInMethodsExpectedResult)); }
public void GeneratingSource_FromValidGroup_ResultsInValidSource() { var entries = new List <TextResource> { new TextResource("A.B.D", "A.B.D"), new TextResource("A", "A"), new TextResource("A.B.D.E", "A.B.D.E"), }; var group = _uut.CreateGroup(entries); var metadata = new ResourceGenerationMetadata("Test", "TestNamespace"); var source = _uut.GenerateSource(group, metadata); Assert.That(source, Is.EqualTo(GeneratingSourceFromValidGroupResultsInValidSourceExpectedResult)); }