public void OutputStreamIndex_ShouldReturnNegativeValue_When_NotInitialized()
 {
     using (var config = new ValidatedGraphConfig())
     {
         Assert.AreEqual(-1, config.OutputStreamIndex(""));
     }
 }
 public void OutputStreamIndex_ShouldReturnIndex_When_TheStreamIsNotPublic()
 {
     using (var config = new ValidatedGraphConfig())
     {
         config.Initialize(CalculatorGraphConfig.Parser.ParseFromTextFormat(_PassThroughConfigText)).AssertOk();
         Assert.AreEqual(1, config.OutputStreamIndex("out1"));
     }
 }
 public void OutputStreamIndex_ShouldReturnNegativeValue_When_TheNameIsInvalid()
 {
     using (var config = new ValidatedGraphConfig())
     {
         config.Initialize(CalculatorGraphConfig.Parser.ParseFromTextFormat(_PassThroughConfigText)).AssertOk();
         Assert.AreEqual(-1, config.OutputStreamIndex("unknown"));
     }
 }