local q=import("\046\046\047\069\110\117\109\047\070\111\110\116")local H=import("\046\046\047\073\110\115\116\097\110\099\101")local N=import("\046\046\047\069\110\117\109\047\084\101\120\116\088\065\108\105\103\110\109\101\110\116")local b=import("\046\046\047\069\110\117\109\047\084\101\120\116\089\065\108\105\103\110\109\101\110\116")local v=import("\046\046\047\102\117\110\099\116\105\111\110\115\047\116\121\112\101\111\102")describe("\105\110\115\116\097\110\099\101\115\046\084\101\120\116\066\117\116\116\111\110",function()it("\115\104\111\117\108\100 \105\110\115\116\097\110\116\105\097\116\101",function()local q=H.new("\084\101\120\116\066\117\116\116\111\110")assert.not_nil(q)end)it("\115\104\111\117\108\100 \104\097\118\101 \112\114\111\112\101\114\116\105\101\115 \100\101\102\105\110\101\100",function()local Q=H.new("\084\101\120\116\066\117\116\116\111\110")assert.equal(v(Q.Font),"\069\110\117\109\073\116\101\109")assert.equal(Q.Font.EnumType,q)assert.equal(v(Q.Text),"\115\116\114\105\110\103")assert.equal(v(Q.TextColor3),"\067\111\108\111\114\051")assert.equal(v(Q.TextSize),"\110\117\109\098\101\114")assert.equal(v(Q.TextWrapped),"\098\111\111\108\101\097\110")assert.equal(v(Q.TextXAlignment),"\069\110\117\109\073\116\101\109")assert.equal(Q.TextXAlignment.EnumType,N)assert.equal(v(Q.TextYAlignment),"\069\110\117\109\073\116\101\109")assert.equal(Q.TextYAlignment.EnumType,b)end)end)
local Font = import("../Enum/Font")
local Instance = import("../Instance")
local TextXAlignment = import("../Enum/TextXAlignment")
local TextYAlignment = import("../Enum/TextYAlignment")
local typeof = import("../functions/typeof")

describe("instances.TextButton", function()
	it("should instantiate", function()
		local instance = Instance.new("TextButton")

		assert.not_nil(instance)
	end)

	it("should have properties defined", function()
		local instance = Instance.new("TextButton")
		assert.equal(typeof(instance.Font), "EnumItem")
		assert.equal(instance.Font.EnumType, Font)
		assert.equal(typeof(instance.Text), "string")
		assert.equal(typeof(instance.TextColor3), "Color3")
		assert.equal(typeof(instance.TextSize), "number")
		assert.equal(typeof(instance.TextWrapped), "boolean")
		assert.equal(typeof(instance.TextXAlignment), "EnumItem")
		assert.equal(instance.TextXAlignment.EnumType, TextXAlignment)
		assert.equal(typeof(instance.TextYAlignment), "EnumItem")
		assert.equal(instance.TextYAlignment.EnumType, TextYAlignment)
	end)
end)
