public void PostTone_Success()
        {
            byte[]       bytes     = Encoding.ASCII.GetBytes(inputText);
            MemoryStream toneInput = new MemoryStream(bytes);

            service.WithHeader("X-Watson-Test", "1");
            var result = service.Tone(
                toneInput: toneInput,
                contentType: "text/html",
                sentences: true,
                contentLanguage: "en-US",
                acceptLanguage: "en-US"
                );

            Assert.IsNotNull(result.Result);
            Assert.IsTrue(result.Result.DocumentTone.ToneCategories.Count >= 1);
            Assert.IsTrue(result.Result.DocumentTone.ToneCategories[0].Tones.Count >= 1);
        }
        public void PostTone_Success()
        {
            ToneInput toneInput = new ToneInput()
            {
                Text = inputText
            };

            service.WithHeader("X-Watson-Test", "1");
            var result = service.Tone(
                toneInput: toneInput,
                contentType: "text/html",
                sentences: true,
                contentLanguage: "en-US",
                acceptLanguage: "en-US"
                );

            Assert.IsNotNull(result.Result);
            Assert.IsTrue(result.Result.DocumentTone.ToneCategories.Count >= 1);
            Assert.IsTrue(result.Result.DocumentTone.ToneCategories[0].Tones.Count >= 1);
        }
 public void TestSetup()
 {
     service.WithHeader("X-Watson-Test", "1");
 }