local p=require("\078\101\120\117\115\085\110\105\116\084\101\115\116\105\110\103")local u=require((game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")):WaitForChild("\078\101\120\117\115\080\108\117\103\105\110\070\114\097\109\101\119\111\114\107"))local L=u:GetResource("\080\108\117\103\105\110\046\078\101\120\117\115\080\108\117\103\105\110")p:RegisterUnitTest("\067\111\110\115\116\114\117\099\116\111\114",function(p)local u=L.new()p:AssertEquals(u.ClassName,"\078\101\120\117\115\080\108\117\103\105\110","\067\108\097\115\115 \110\097\109\101 \105\115 \105\110\099\111\114\114\101\099\116\046")p:AssertEquals(u.Name,"\078\101\120\117\115\080\108\117\103\105\110","\078\097\109\101 \105\115 \105\110\099\111\114\114\101\099\116\046")p:AssertEquals(tostring(u),"\078\101\120\117\115\080\108\117\103\105\110","\078\097\109\101 \105\115 \105\110\099\111\114\114\101\099\116\046")end)p:RegisterUnitTest("\067\111\110\115\116\114\117\099\116\111\114",function(p)local u=L.new()L.SetPlugin(u)p:AssertSame(L.GetPlugin(),u,"\080\108\117\103\105\110 \119\097\115\110\'\116 \115\101\116\046")end)return true
--[[
TheNexusAvenger

Tests the NexusPlugin class.
--]]

local NexusUnitTesting = require("NexusUnitTesting")

local NexusPluginFramework = require(game:GetService("ReplicatedStorage"):WaitForChild("NexusPluginFramework"))
local NexusPlugin = NexusPluginFramework:GetResource("Plugin.NexusPlugin")



--[[
Test that the constructor works without failing.
--]]
NexusUnitTesting:RegisterUnitTest("Constructor",function(UnitTest)
	local CuT = NexusPlugin.new()
	UnitTest:AssertEquals(CuT.ClassName,"NexusPlugin","Class name is incorrect.")
	UnitTest:AssertEquals(CuT.Name,"NexusPlugin","Name is incorrect.")
	UnitTest:AssertEquals(tostring(CuT),"NexusPlugin","Name is incorrect.")
end)

--[[
Tests the SetPlugin method.
--]]
NexusUnitTesting:RegisterUnitTest("Constructor",function(UnitTest)
	local CuT = NexusPlugin.new()
	NexusPlugin.SetPlugin(CuT)
	UnitTest:AssertSame(NexusPlugin.GetPlugin(),CuT,"Plugin wasn't set.")
end)



return true