public void InitializesExplicitExtractors() { var target = new LandmineMvcAttribute(new[] { typeof(EmptyExtractor) }); Assert.AreEqual(1, target.ContextProcessors.Count()); Assert.IsTrue(target.ContextProcessors.Any(x => x.IdExtractor is EmptyExtractor)); }
public void InitializesDefaultExtractors() { var target = new LandmineMvcAttribute(); Assert.IsTrue(target.ContextProcessors.Any(x => x.IdExtractor is SessionIdExtractor)); Assert.IsTrue(target.ContextProcessors.Any(x => x.IdExtractor is UserHostExtractor)); }
public void SetterAndGetterInSync() { var target = new LandmineMvcAttribute { LandmineName = "D6B1C3FAB8B3474C955E9D204EDD0B87" }; Assert.AreEqual("D6B1C3FAB8B3474C955E9D204EDD0B87", target.LandmineName); }
public void SetterAndGetterInSync() { var target = new LandmineMvcAttribute { ExpectedValue = "5D0C2EA8BAB44ACFAD107ACAD809D90E" }; Assert.AreEqual("5D0C2EA8BAB44ACFAD107ACAD809D90E", target.ExpectedValue); }
public void ReturnsCorrectType() { var target = new LandmineMvcAttribute(); Assert.IsInstanceOfType(target.Instance, typeof(Landmine)); }