public static void ShouldIndex_Should_Return_True() { var testPage = new TestPage(); var shouldIndex = testPage.ShouldIndex(); Assert.Equal(true, shouldIndex); }
public static void CreateIndexModel_Should_Return_TestPageIndexModel() { var testPage = new TestPage(); var indexModel = testPage.CreateIndexModel(); Assert.Equal(typeof(TestPageIndexModel), indexModel.GetType()); }
public static void CreateTypeMapping_Should_Return_A_Valid_PutMappingRequest() { var testPage = new TestPage(); var typeMapping = testPage.CreateTypeMapping(new CultureInfo("en")); Assert.NotNull(typeMapping); Assert.IsType<TypeMappingDescriptor<TestPageIndexModel>>(typeMapping); }