public void IsExternalSidePacket_ShouldReturnFalse_When_NotInitialized() { using (var config = new ValidatedGraphConfig()) { Assert.False(config.IsExternalSidePacket("model_complexity")); } }
public void IsExternalSidePacket_ShouldReturnTrue_When_TheSidePacketIsExternal() { using (var config = new ValidatedGraphConfig()) { config.Initialize(CalculatorGraphConfig.Parser.ParseFromTextFormat(_PoseLandmarkConfigText)).AssertOk(); Assert.True(config.IsExternalSidePacket("model_complexity")); } }
public void IsExternalSidePacket_ShouldReturnFalse_When_TheSidePacketIsInternal() { using (var config = new ValidatedGraphConfig()) { config.Initialize(CalculatorGraphConfig.Parser.ParseFromTextFormat(_ConstantSidePacketConfigText)).AssertOk(); Assert.False(config.IsExternalSidePacket("int_packet")); } }