Esempio n. 1
0
        public void Get_WhenRequestHeaderNull_ExpectArgumentNullException()
        {
            var client    = new LanguageClient();
            var exception = Assert.Throws <ArgumentNullException>(() => client.Get(null));

            Assert.Equal("settings", exception.ParamName);
        }
Esempio n. 2
0
        public void Get_WhenScopeSpecified_ExpectData(Scope scopes)
        {
            var client = new LanguageClient();
            var data   = client.Get(new RequestHeader(), scopes);

            Assert.NotNull(data);
            Assert.NotEmpty(data.Translation);
            Assert.NotEmpty(data.Dictionary);
            Assert.NotEmpty(data.Transliteration);
        }