Exemple #1
0
        void ThenThereIsCollectionOfElementsOfType(string expectedType, string rootSearchString, string valueSearchString, string listSearchString)
        {
            var generatedCodeEntry = _entry.GenerateCode(SupportedTargetLanguages.Java);

            Assert.True(generatedCodeEntry.Contains(expectedType));
            if (_entry.JdiMemberType.IsComplexControl())
            {
                if (!string.IsNullOrEmpty(rootSearchString))
                {
                    Assert.False(string.IsNullOrEmpty(_entry.Root.SearchString));
                }
                if (!string.IsNullOrEmpty(valueSearchString))
                {
                    Assert.False(string.IsNullOrEmpty(_entry.Value.SearchString));
                }
                if (!string.IsNullOrEmpty(listSearchString))
                {
                    Assert.False(string.IsNullOrEmpty(_entry.List.SearchString));
                }
            }
        }
 public void ThenTheResultShouldBeAnElementOfType(string p0)
 {
     Xunit.Assert.True(_entry.GenerateCode(SupportedTargetLanguages.Java).Contains(p0));
 }
Exemple #3
0
 void ThenThereIsElementOfType(string expected)
 {
     Assert.True(_entry.GenerateCode(SupportedTargetLanguages.Java).Contains(expected));
 }