local K=game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")local H=require(K.Packages.Dex.Reflection.IsVirtualInstance)local x=require(K.Packages.Dex.VirtualInstanceCreators)return function()it("\114\101\116\117\114\110\115 \116\114\117\101 \102\111\114 \086\105\114\116\117\097\108\073\110\115\116\097\110\099\101",function()local K=x.New("\080\097\114\116");(expect(H(K))).to.equal(true)end)it("\114\101\116\117\114\110\115 \102\097\108\115\101 \102\111\114 \110\111\110-\086\105\114\116\117\097\108\073\110\115\116\097\110\099\101 \118\097\108\117\101\115",function()(expect(H(nil))).to.equal(false);(expect(H(true))).to.equal(false);(expect(H(42))).to.equal(false);(expect(H("\104\101\108\108\111"))).to.equal(false);(expect(H({}))).to.equal(false);(expect(H(function() end))).to.equal(false)end)end
--!strict
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local IsVirtualInstance = require(ReplicatedStorage.Packages.Dex.Reflection.IsVirtualInstance)
local VirtualInstanceCreators = require(ReplicatedStorage.Packages.Dex.VirtualInstanceCreators)

return function()
    it("returns true for VirtualInstance", function()
        local virtualInstance = VirtualInstanceCreators.New("Part")
        expect(IsVirtualInstance(virtualInstance)).to.equal(true)
    end)

    it("returns false for non-VirtualInstance values", function()
        expect(IsVirtualInstance(nil)).to.equal(false)
        expect(IsVirtualInstance(true)).to.equal(false)
        expect(IsVirtualInstance(42)).to.equal(false)
        expect(IsVirtualInstance("hello")).to.equal(false)
        expect(IsVirtualInstance({})).to.equal(false)
        expect(IsVirtualInstance(function() end)).to.equal(false)
    end)
end
