local X=import("\046\047\080\108\097\121\101\114")describe("\105\110\115\116\097\110\099\101\115\046\080\108\097\121\101\114",function()it("\115\104\111\117\108\100 \105\110\115\116\097\110\116\105\097\116\101",function()local c=X:new()assert.not_nil(c)assert.equals(c.UserId,0)end)it("\115\104\111\117\108\100 \116\097\107\101 \097 \117\115\101\114\073\100",function()local c=X:new(1234)assert.equals(c.UserId,1234)end)it("\115\104\111\117\108\100 \116\104\114\111\119 \119\104\101\110 \117\115\101\114\073\100 \105\115 \110\111\116 \097 \110\117\109\098\101\114",function()assert.has.errors(function()X:new("\049\050\051\052")end)end)end)
local Player = import("./Player")

describe("instances.Player", function()
	it("should instantiate", function()
		local instance = Player:new()

		assert.not_nil(instance)
		assert.equals(instance.UserId, 0)
	end)

	it("should take a userId", function()
		local instance = Player:new(1234)

		assert.equals(instance.UserId, 1234)
	end)

	it("should throw when userId is not a number", function()
		assert.has.errors(function()
			Player:new("1234")
		end)
	end)
end)