Add test for BaseException

This commit is contained in:
Kegan Myers 2014-03-03 14:54:55 -06:00
parent 6d52a912b4
commit f9dfa3ba91

View file

@ -0,0 +1,16 @@
describe("Typertext.BaseException", function () {
it("exists", function () {
expect(typeof Typertext.BaseException).toEqual("function");
});
it("works", function () {
var inputString = "Test message",
inputCode = 239,
inputCustom = -1,
testClass = new Typertext.Http.HttpException(inputString, inputCode, inputCustom);
expect(testClass.GetCode()).toEqual(inputCode);
expect(testClass.GetCustom()).toEqual(inputCustom);
expect(testClass.GetMessage()).toEqual(inputString);
});
});